package designPattern.composite;

import java.util.List;

/**
 * Created by cdxuhongya on 2017/1/9.
 */
public abstract class Employer {
    public abstract void add(Employer employer);
    public abstract void remove(Employer employer);

    private List<Employer> employers;

    private String name;

    public void printInfo(){
        System.out.println("name:" + name);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Employer> getEmployers() {
        return employers;
    }

    public void setEmployers(List<Employer> employers) {
        this.employers = employers;
    }
}
